(setq plantuml-java-args '("-Djava.awt.headless=true" "-jar"))
(setq plantuml-jar-path "c:/opt/plantuml.jar")
(setq plantuml-default-exec-mode 'jar)


(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
(setq org-plantuml-jar-path (expand-file-name "c:/opt/plantuml.jar"))
(add-to-list 'org-src-lang-modes '("plantuml" . plantuml))
(org-babel-do-load-languages 'org-babel-load-languages '((plantuml . t)))

;; (add-hook 'plantuml-mode-hook 
;;           (lambda ()
;;             (progn
;;               (setq plantuml-jar-path "c:/opt/plantuml.jar")
;;               (setq plantuml-default-exec-mode 'jar)
;;               (setq plantuml-output-type "png")

;;               (add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
;;               (setq org-plantuml-jar-path (expand-file-name "c:/opt/plantuml.jar"))
;;               (add-to-list 'org-src-lang-modes '("plantuml" . plantuml))
;;               (org-babel-do-load-languages 'org-babel-load-languages '((plantuml . t))))))
